package com.uduemc.biso.core.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.uduemc.biso.core.feign.fallback.SiteFeignFallback;
import com.uduemc.biso.core.utils.RestResult;

@FeignClient(value = "BISO-BASIC-SERVICE", fallback = SiteFeignFallback.class)
@RequestMapping(value = "/site")
public interface SiteFeign {

	@GetMapping("/find-one/{id}")
	RestResult findOne(@PathVariable("id") Long id);

	@GetMapping("/find-by-host-id/{hostId}")
	RestResult findByHostId(@PathVariable("hostId") Long hostId);

}
